package cn.lingyan.service;

import cn.lingyan.dao.CommonDAO;

import java.io.Serializable;
import java.util.List;

public class OrderServiceImpl implements Orderservice {

    private CommonDAO commonDAO=null;

    public void setCommonDAO(CommonDAO commonDAO) {
        this.commonDAO = commonDAO;
    }

    @Override
    public Object get(Class clazz, Serializable id) {
        return this.commonDAO.get(clazz,id);
    }

    @Override
    public Serializable add(Object o) {
        return this.commonDAO.add(o);
    }

    @Override
    public void del(Class clazz, Serializable id) {
        this.commonDAO.del(clazz,id);
    }

    @Override
    public void update(Object o) {
        this.update(o);
    }

    @Override
    public List search(String hql) {
        return this.search(hql);
    }
}
